# 方法1：先暂时用全局变量，增加统计移动次数
count = 1
def move(n, a, b, c):
	if n == 1:
		global count
		print(count, ': ', a, '-->', c)
		count += 1
	else:
		move(n-1, a, c, b)
		move(1, a, b, c)
		move (n-1, b, a, c)

move(4, 'A', 'B', 'C')